package org.jetnuke.modules.jforum;

import javax.servlet.http.HttpServletResponse;

import net.jforum.ActionServletRequest;

import org.apache.velocity.VelocityContext;
import org.jetnuke.common.IAdminInfo;
import org.jetnuke.common.ICustomModule;
import org.jetnuke.common.IUserInfo;

public class JForumBaseModule implements ICustomModule {

	public boolean[] service(ActionServletRequest request1,
			HttpServletResponse response, StringBuffer sb, VelocityContext vc,
			IUserInfo userInfo, IAdminInfo adminInfo, boolean isIndex,
			long time_init) throws Exception {
		
		String sReturn=Utils.jforumService(request1,response);
		
		boolean bReturn[]=new boolean[2];
		bReturn[0]=true;
		bReturn[1]=true;
		if(sReturn==null){
			bReturn[0]=false;//Do not continue!
		}
		else{
			sb.append(sReturn);
		}
		return bReturn;

	}

}
